package com.publicize.service;

import com.publicize.entity.Module;
import com.baomidou.mybatisplus.extension.service.IService;
import com.publicize.entity.ModulePicture;

import java.util.List;

/**
 * <p>
 * 投稿信息表 服务类
 * </p>
 *
 * @author bs
 * @since 2021-03-04
 */
public interface ModuleService extends IService<Module> {

    List<Module> selectModuleById(String id, Integer page, Integer moduleId);

    List<Module> selectModuleByUserIdAndRelationId(String userId,String relationId);

    boolean saveModule(Module module);

    boolean deleteModule(String number);

    Integer countModuleByRelationId(String relation);
}
